package com.order.rabbitmq;

import com.rabbitmq.client.Channel;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.context.annotation.Configuration;


/**
 * @author yinxing
 * @date 2022-08-30
 */
@Configuration
public class consumer {

    @RabbitListener(queues = "")
    public void receive(Message message,Channel channel){
        String msg = new String(message.getBody());
    }

}
